import {Dispatcher} from "./dispatcher";
/**
 * Created by asus on 2017/7/18.
 */

const data = {
    "title": "",
    "price": "200",
    "unitPrice": null,
    "livingRoom": "2",
    "bedroom": "2",
    "kitchen": null,
    "bathroom": null,
    "area": "201",
    "floor": "17",
    "direction": 1,
    "decoration": 1,
    "elevator": 1,
    "structType": null,
    "business": null,
    "district": null,
    "year": null,
    "address": "华庭横路与华庭路交叉口西南50米",
    "school": "",
    "mall": "",
    "hospital": "",
    "bus": "",
    "propertyPicUrl": "http://onzb85cov.bkt.clouddn.com/4a2c7960-ef82-42be-9988-0ff56509dcb9",
    "landPicUrl": "",
    "ownerPicUrl": "",
    "pics": [{"picUrl": "http://onzb85cov.bkt.clouddn.com/da1bf121-76ed-4940-8a63-cded878e2e00"}],
    "locationId": "",
    "location": "四季会",
    "lng": 110.33332,
    "lat": 19.99488,
    "account": "",
    "token": ""
};

let dispatcher = new Dispatcher();
// dispatcher.post('http://192.168.0.120:8081/house/add-all', data, (response) => {
//     console.log(response);
// }, 'JSON');


dispatcher.post('http://192.168.0.120:8081/user/token', {token: 'xxxx'}, (response) => {
    console.log(response);
});